/**
 * 蜂窝纹路
 */

class HoneycombPattern extends HTMLElement {
    async connectedCallback() {
        await createScriptElement({ src: "components/bgCanvas/honeycombPattern/index.css", name: "蜂窝纹路css", type: "link" });
        this.innerHTML = `<div class="honey"><canvas id="canvas"></canvas></div>`;
        await createScriptElement({ src: "components/bgCanvas/honeycombPattern/index.js", name: "蜂窝纹路依赖", type: "script" });
    }
}

customElements.define("honey-pattern", HoneycombPattern);